import request from '@/utils/request'

// 查询附件列表
export function listFujian(query) {
  return request({
    url: '/project/fujian/list',
    method: 'get',
    params: query
  })
}

// 查询附件详细
export function getFujian(fjid) {
  return request({
    url: '/project/fujian/' + fjid,
    method: 'get'
  })
}

// 新增附件
export function addFujian(data) {
  return request({
    url: '/project/fujian',
    method: 'post',
    data: data
  })
}

// 修改附件
export function updateFujian(data) {
  return request({
    url: '/project/fujian',
    method: 'put',
    data: data
  })
}

// 删除附件
export function delFujian(fjid) {
  return request({
    url: '/project/fujian/' + fjid,
    method: 'delete'
  })
}

// 上传附件
export function uploadFujian(data) {
  return request({
    url: '/project/fujian/file/upload',
    method: 'post',
    data: data
  })
}
